﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Template_Method
{
    class Program
    {
        static void Main(string[] args)
        {
            BasePay alipay = new AliPay();
            alipay.Total = 100;
            alipay.Pay("xiaoming","123123");
            BasePay wxpay = new WXPay();
            wxpay.Total = 100;
            wxpay.Pay("xiaoli","123456");
            Console.ReadKey();
        }
    }
}
